import React from 'react';
import UserContext from './UserContext';
import Child from './Child';

const Father = (props) => {
  return (
    <div>
      <UserContext.Provider
        value={{
          name: '李四',
          age: 30,
        }}
      >
        <Child />
      </UserContext.Provider>
    </div>
  );
};

export default Father;
